package com.bootdo.core.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.core.dao.ShortVideoDao;
import com.bootdo.core.domain.ShortVideoDO;
import com.bootdo.core.service.ShortVideoService;



@Service
public class ShortVideoServiceImpl implements ShortVideoService {
	@Autowired
	private ShortVideoDao shortVideoDao;
	
	@Override
	public ShortVideoDO get(Integer id){
		return shortVideoDao.get(id);
	}
	
	@Override
	public List<ShortVideoDO> list(Map<String, Object> map){
		return shortVideoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return shortVideoDao.count(map);
	}
	
	@Override
	public int save(ShortVideoDO shortVideo){
		return shortVideoDao.save(shortVideo);
	}
	
	@Override
	public int update(ShortVideoDO shortVideo){
		return shortVideoDao.update(shortVideo);
	}
	
	@Override
	public int remove(Integer id){
		return shortVideoDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return shortVideoDao.batchRemove(ids);
	}

	@Override
	public int review(Integer id, String reviewStatus) {
		return shortVideoDao.review(id,reviewStatus);
	}
	
}
